<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div v-for="(item,index) in student">
            <p v-if="item.age!=18">
                {{index+1}}.
                姓名: {{item.name}}
                年龄: {{item.age}}
            </p>
        </div>
    </div>
</body>
<script src="./vue.min.js"></script>
<script>
    var vm = new Vue({
        el:"#app",
        data() {
            return {
                msg:"你好",
                student:[
                    {name:"张三",age:10},
                    {name:"杰克",age:11},
                    {name:"大卫",age:18},
                    {name:"李四",age:10},
                    {name:"狗蛋",age:18}
                ]
            }
        },
        methods: {
            
        },
        computed:{
            allPrice:function(){
                return 280;
            }
        }
    })


</script>
</html>